// tabBarComponent/tabBar.js
const app = getApp();
Page({
  data: {
  puplist:false
  },
})
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    tabbar: {
      type: Object,
      value:   {
        "list": [{
          "pagePath": "/pages/home/home",
          "text": "首页",
          "iconPath": "icon/No_firstPage.png",
          "selectedIconPath": "icon/firstPage.png"
        },
        {
          "pagePath": "/pages/project/project",
          "text": "项目",
          "iconPath": "icon/No_project.png",
          "selectedIconPath": "icon/project.png"
        },
        {
          "pagePath": "/pages/middle/middle",
          "iconPath": "icon/icon_release.png",
          "isSpecial": true,
        },
        {
          "pagePath": "/pages/message/message",
          "text": "消息",
          "iconPath": "icon/No_message.png",
          "selectedIconPath": "icon/message.png"
        },
        {
          "pagePath": "/pages/me/me",
          "text": "我的",
          "iconPath": "icon/No_me.png",
          "selectedIconPath": "icon/me.png"
        }
      ]
      },
    }
  },
  
  /**
   * 组件的初始数据
   */
  data: {
    pupList:false,
    isIphoneX: app.globalData.systemInfo.model.search('iPhone X') != -1 ? true : false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    pupList(){
      this.setData({
        puplist:true
      })
    },
    onClose(){
      this.setData({
        puplist:false
      })
    },
    goPost() {
      wx.navigateTo({
        url: '../Pub/PubTexPic/PubTexPic',
      })
    },
    goApply() {
      wx.navigateTo({
        url: '../me_all/applyAmb/applyAmb',
      })
    },
    goLottery() {
      wx.navigateTo({
        url: '../me_all/lottery/lottery',
      })
    },
  }
})
